package com.gmail.flashpig8014.test

/**
 * Created by IntelliJ IDEA.
 * User: ZHANGTAO
 * Date: 12-3-13
 * Time: 下午10:09
 * To change this template use File | Settings | File Templates.
 */
class HelloGroovy {
    def name
    HelloGroovy(who) {
        name = who[0].toUpperCase() + who[1..-1]
    }

    def sayHello() {
        println "Hello $name"
    }
}

g = new com.gmail.flashpig8014.test.HelloGroovy("zhangtao")
g.sayHello()
